<?php

class Controller
{
    /**
     *View Object
     * @var View 
     */
    protected $view;
    
    /**
     *Request Object
     * @var Request 
     */
    protected $request;
    
    /**
     *Parameters Array
     * @var array 
     */
    protected $params;
    
    public function __construct() {
        $this->request = new Request();
    }
    
    public function setView($viewFile)
    {
        $view = new View(VIEW_PATH.'/'. $viewFile );
        $this->view = $view;        
    }
    
    public function getView()
    {
        return $this->view;        
    }
    
    public function setRequest($request)
    {
        $this->request = $request;        
    }
    
    public function getRequest()
    {
        return $this->request;        
    }
    
    public function setParams($params)
    {
        $this->params = $params;        
    }
    
    public function getParams()
    {
        return $this->params;        
    }
            
           
    
}

